class Method
{
   String name;
   MessageTable messageTable = new MessageTable();
   
   Method(String name)
   {
      this.name = name;
   }
   
   public String getName()
   {
      return name;
   }

   public String toString()
   {
      return name;
   }
   
   public void add(Message m)
   {
      messageTable.add(m);
   }
   
   public MessageTable getMessageTable()
   {
      return messageTable;
   }
}
